package com.mimiwang.article.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mimiwang.article.dao.FabulousDao;
import com.mimiwang.article.entity.FabulousEntity;
import com.mimiwang.article.service.FabulousService;
import com.mimiwang.common.utils.PageUtils;
import com.mimiwang.common.utils.Query;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("fabulousService")
public class FabulousServiceImpl extends ServiceImpl<FabulousDao, FabulousEntity> implements FabulousService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<FabulousEntity> page = this.page(
                new Query<FabulousEntity>().getPage(params),
                new QueryWrapper<FabulousEntity>()
        );

        return new PageUtils(page);
    }

}